Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Arrow Related Actor Flags #1737

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

engineer124
Copy link
Collaborator

@engineer124 engineer124 added documentation Improvements or additions to documentation Needs-second-approval Second approval Needs-first-approval First approval labels Nov 6, 2024
@hensldm hensldm removed the Needs-first-approval First approval label Nov 6, 2024
Copy link
Collaborator

@hensldm hensldm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 small comment to think about.

@@ -369,7 +369,7 @@ void EnFg_Update(Actor* thisx, PlayState* play) {
flagSet = CHECK_FLAG_ALL(flag, ACTOR_FLAG_2000);
if (1) {}
if (!flagSet) {
flagSet = CHECK_FLAG_ALL(flag, ACTOR_FLAG_8000);
flagSet = CHECK_FLAG_ALL(flag, ACTOR_FLAG_ATTACHED_TO_ARROW);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if better/should be done in this PR, but you can remove the temps and if (1)s by doing

    if ((CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_2000) == 0) &&
        (CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_8000) == 0)) {
        this->actionFunc(this, play);
        Actor_UpdateBgCheckInfo(play, &this->actor, sREG(0), sREG(1), 0.0f,
                                UPDBGCHECKINFO_FLAG_1 | UPDBGCHECKINFO_FLAG_4);
    }

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@hensldm hensldm added Merge-ready All reviewers satisfied, just waiting for CI Waiting-for-author Author needs fix to conflicts or address reviews and removed Needs-second-approval Second approval labels Nov 7, 2024
@engineer124 engineer124 removed the Waiting-for-author Author needs fix to conflicts or address reviews label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Merge-ready All reviewers satisfied, just waiting for CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants